<template>
  <div class="applyPosition">
      <!-- 头部返回按钮 -->
       <div class="header">
          <div class="text" @click="okk">
          <i class="iconfont icon-back"></i>
          <span class="text1">
            <i class="iconfont icon-fanhui"></i>
            实名认证
          </span>
          </div>
      </div>

      <!-- 实名认证 -->
        <!-- 申请的具体表单内容 -->
   <mt-field label="名字" placeholder="请输入真实姓名" v-model="realname"></mt-field>
   <mt-field label="性别" placeholder="请输入性别" v-model="realname"></mt-field>
   <mt-field label="身份证" placeholder="请输入身份证号码" type="number" v-model="identity"></mt-field>

      <!-- 上传职位图片 -->
   <div class="portrait">
      <span class="details">
        <div class="right">请上传身份证或者职位等证明图片</div>
        <el-upload
            class="avatar-uploader"
            action="http://localhost:7001/uploadUser"
            :show-file-list="false"
            :on-success="handleAvatarSuccess"
            :before-upload="beforeAvatarUpload"
            >
            <img v-if="imageUrl" :src="imageUrl" class="avatar">
            <i v-else class="el-icon-plus avatar-uploader-icon"></i>
          </el-upload>
      </span>
    </div>

      <!-- 点击确认提交按钮 -->
     <div class="confirmButton">
          <mt-button class="but" type="plain" size="large" @click="confirmBook">确定</mt-button>
      </div>

  </div>
</template>

<script>
export default {
  data () {
    return {

    }
  },
  methods: {
    okk () {
      this.$router.go(-1)// 返回上一层
    }
  }
}
</script>

<style scoped>
.header {
  height: 1.5rem;
  width: 100%;
  background:rgb(255, 204, 153);
}
.text{
  padding-top:4%;
  font-size:0.55rem;
  color:white
}
.iconfont{
  font-size: 0.55rem;
}
.button{
  text-align: center;
  width:90%;
  margin:10px;
  text-align: center;
  /* text-align:justify; */
}
.hello{
  padding:10px;
  margin:10px;
  font-size:17px;
  color:darkcyan
}

.portrait{
  margin-top:10px;
  padding-bottom:10px;
  margin:10px;
  /* display: flex; */
  /* justify-content: space-between; */
  /* align-items: center; */
  border-top: 1px solid #ccc;
}

.portrait .details{
  padding-left:20px;
}
.portrait .right{
  margin-left:10px;
  font-size:16px;
  margin-right:20px;
  margin-bottom:10px;
}

/* 上传头像 */
  .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    border-radius:50px;
    margin-right: 20px;
    width:50px;
    height: 50px;
    text-align: center;
    margin-top:10px;
  }
  .avatar {
    width: 98px;
    height: 98px;
    border-radius: 6px;
    margin-left: 10px;
    /* display: block; */
  }
  /* 确认按钮 */
.confirmButton{
  display: flex;
  justify-content: center;
  width:90%;
  margin: 0.5rem;
  background: #96D596;
  color:#fff
}
.confirmButton .but{
  background: rgb(255, 204, 153);;
}

</style>
